<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
	<title>金融信息</title>
	<link rel="stylesheet" href="/Public/projects/tip/style/weui.min.css"/>
	<link rel="stylesheet" href="/Public/projects/tip/style/example.css"/>
</head>
<body ontouchstart>
<div class="weui-cells__title"></div>

<table style="width: 100%">
	<tr>
		<th style="width: 12%">名称</th>
		<th style="width: 12%">主入</th>
		<th style="width: 12%">主比</th>
		<th style="width: 12%">超入</th>
		<th style="width: 12%">大入</th>
		<th style="width: 12%">中入</th>
		<th style="width: 12%">小入</th>
		<th style="width: 12%">次数</th>
	</tr>
	<?php
	foreach($cj_arr as $cj){
		echo '<tr onclick="my_toast(\'' . $cj['code'] . '\',' . $cj['up'] . ');"><td>';
		switch($cj['code']){
			case "sh600309":
				echo "万向化学";break;
			case "sh600585":
				echo "海螺水泥";break;
			case "sh600188":
				echo "兖州煤业";break;
			case "sz002023":
				echo "海特高新";break;
			case "sh603718":
				echo "海利生物";break;
			case "sh600400":
				echo "红豆股份";break;
			case "sz000860":
				echo "顺鑫农业";break;
			case "sh600756":
				echo "浪潮软件";break;
			case "sh600884":
				echo "杉杉股份";break;
			case "sh603800":
				echo "道森股份";break;
			case "sh601858":
				echo "中国科传";break;
			case "sz002095":
				echo "生意宝";break;
			case "sh600661":
				echo "新南洋";break;
			case "sz002184":
				echo "海得控制";break;
			case "sz002504":
				echo "弘高创意";break;
			case "sz002049":
				echo "紫光国芯";break;
			case "sz002897":
				echo "意华股份";break;
			case "sh600271":
				echo "航天信息";break;
			default:break;
		}
		echo "</td><td>" . $cj['main_in'] . "</td><td>" . $cj['main_in_per'] . "</td><td>" . $cj['sbig_in'] . "</td><td>" .
		$cj['big_in'] . "</td><td>" . $cj['middle_in'] . "</td><td>" . $cj['small_in'] . "</td><td>" . $cj['up_time'] . "</td></tr>";
	}
	?>
</table>
<form action="/User/Praiseeat/my_cj" method="get" enctype="multipart/form-data">
	<div class="weui-cell weui-cell_select">
		<div class="weui-cell__bd">
			<select class="weui-select" name="code">
				<option value="">全部</option>
				<option value="sh600309">万向化学</option>
				<option value="sh600585">海螺水泥</option>
				<option value="sh600188">兖州煤业</option>
				<option value="sz002023">海特高新</option>
				<option value="sh603718">海利生物</option>
				<option value="sh600400">红豆股份</option>
				<option value="sz000860">顺鑫农业</option>
				<option value="sh600756">浪潮软件</option>
				<option value="sh600884">杉杉股份</option>
				<option value="sh603800">道森股份</option>
				<option value="sh601858">中国科传</option>
				<option value="sz002095">生意宝</option>
				<option value="sh600661">新南洋</option>
				<option value="sz002184">海得控制</option>
				<option value="sz002504">弘高创意</option>
				<option value="sz002049">紫光国芯</option>
				<option value="sz002897">意华股份</option>
				<option value="sh600271">航天信息</option>
			</select>
		</div>
	</div>
	<div class="weui-cell">
		<div class="weui-cell__hd"><label for="" class="weui-label">起始日期</label></div>
		<div class="weui-cell__bd">
			<input class="weui-input" type="date" value="" id="start" name="start_date">
		</div>
	</div>
	<div class="weui-cell">
		<div class="weui-cell__hd"><label for="" class="weui-label">结束日期</label></div>
		<div class="weui-cell__bd">
			<input class="weui-input" type="date" value="" id="end" name="end_date">
		</div>
	</div>
	<div class="weui-btn-area">
		<input class="weui-btn weui-btn_primary" id="showTooltips" type="submit">
	</div>
</form>
<!--BEGIN toast-->
<div id="toast" style="display: none;">
	<div class="weui-mask_transparent"></div>
	<div class="weui-toast">
		<i class="weui-icon-success-no-circle weui-icon_toast"></i>
		<p class="weui-toast__content" id="toast_content">已完成</p>
	</div>
</div>
<!--end toast-->
</body>
<script src="/Public/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    var code = "{$code}";
    var start_date = "{$date_start}";
    var end_date = "{$date_end}";
    $(".weui-select[name=code]").val(code);
    if(start_date != ""){
        $("#start").val(start_date);
	}
    if(end_date != ""){
        $("#end").val(end_date);
    }
    function my_toast(f_code, f_up){
        $.ajax({
			url:"/User/Praiseeat/max",
			tye:"get",
			dataType:"json",
			data:{
			  code:f_code,up:f_up
			},
			success:function (res) {
                alert(res);
            }
		});
	}
</script>
<script src="/Public/js/common/baidutongji.js"></script>
</html>
